package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.StandardDataService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrcalc.integration.FwCalcStandardDataClient;
//import com.wicket.okrcalc.integration.dto.QueryRightCycleActualValueDataDetailComRespDto;
//import com.wicket.okrcalc.integration.dto.QueryRightCycleActualValueDataDetailComReqDto;
import com.wicket.okrcalc.integration.dto.QueryStandardDataDetailComRespDto;
import com.wicket.okrcalc.integration.dto.QueryStandardDataDetailComReqDto;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrcalc.integration.dto.QueryRightCycleActualValueDataDetailComRespDto;
import com.wicket.okrcalc.integration.dto.QueryRightCycleActualValueDataDetailComReqDto;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "StandardData", tags = { "StandardData" })
@RestController
// @RequestMapping("/oms/standardData/")
public class StandardDataController {

  @Autowired
  StandardDataService standardDataService;
/**
   * B3-查询向右周期实际值
   * gen by moon at 7/2/2023, 2:14:42 PM
   */
    @PostMapping("/oms/standardData/queryRightCycleActualValueDataDetail")
    @ApiOperation(value = "B3-查询向右周期实际值", response = OkrResult.class)
    public OkrResult<BffQueryRightCycleActualValueDataDetailRespDto> queryRightCycleActualValueDataDetail(@RequestBody(required=false) @Validated BffQueryRightCycleActualValueDataDetailReqDto reqDTO){
        return OkrResult.success(standardDataService.queryRightCycleActualValueDataDetail(reqDTO));
    }
/**
   * B4-查询实际值标准数据详情
   * gen by moon at 7/2/2023, 2:28:54 PM
   */
    @PostMapping("/oms/standardData/queryActualValueDataDetail")
    @ApiOperation(value = "B4-查询实际值标准数据详情", response = OkrResult.class)
    public OkrResult<BffQueryActualValueDataDetailRespDto> queryActualValueDataDetail(@RequestBody(required=false) @Validated BffQueryActualValueDataDetailReqDto reqDTO){
        return OkrResult.success(standardDataService.queryActualValueDataDetail(reqDTO));
    }
}
